<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, maximum-scale=1.0, minimum-scale=1.0">
    <title>Document</title>
</head>

<body>
    <style>
        * {
            margin: 0;
            padding: 0;
            list-style: none;
            box-sizing: border-box;
            -webkit-appearance: none;
        }

        .img-wrapper {
            column-count: 2;
            column-gap: 10px;
            counter-reset: count;
            margin: 0 auto;
        }

        .img-wrapper li {
            break-inside: avoid;
        }

        .img-wrapper li a {
            position: relative;
            margin-bottom: 10px;
        }

        .img-wrapper li a img {
            width: 100%;
            height: auto;
            vertical-align: middle;
        }

        .img-wrapper li::after {
            counter-increment: count;
            content: counter(count);
            width: 2em;
            height: 2em;
            background-color: rgba(0, 0, 0, 0.9);
            color: #ffffff;
            line-height: 2em;
            text-align: center;
            position: absolute;
            font-size: 1em;
            z-index: 2;
            left: 0;
            top: 0;
        }
    </style>

    <h1> 瀑布流 </h1>

    <ul class="img-wrapper">
        <li>
            <a href="#">
                <img src="images/1.png" alt="">
                <p style="font-size: 26px;">Lorem ipsum dolor sit amet consectetur.</p>
            </a>
            <button style="font-size: 36px;" onclick="aaa()">Watch video </button>
        <li>
            <a href="#">
                <img src="images/2.png" alt="">
                <p style="font-size: 26px;">Lorem ipsum dolor sit amet consectetur.</p>
            </a>
            <button style="font-size: 36px;" onclick="aaa()">Watch video </button>
        <li>
            <a href="#">
                <img src="images/3.png" alt="">
                <p style="font-size: 26px;">Lorem ipsum dolor sit amet consectetur.</p>
            </a>
            <button style="font-size: 36px;" onclick="aaa()">Watch video </button>
        <li>
            <a href="#">
                <img src="images/4.png" alt="">
                <p style="font-size: 26px;">Lorem ipsum dolor sit amet consectetur.</p>
            </a>
            <button style="font-size: 36px;" onclick="aaa()">Watch video </button>
        <li>
            <a href="#">
                <img src="images/5.png" alt="">
                <p style="font-size: 26px;">Lorem ipsum dolor sit amet consectetur.</p>
            </a>
            <button style="font-size: 36px;" onclick="aaa()">Watch video </button>
        <li>
            <a href="#">
                <img src="images/6.png" alt="">
                <p style="font-size: 26px;">Lorem ipsum dolor sit amet consectetur.</p>
            </a>
            <button style="font-size: 36px;" onclick="aaa()">Watch video </button>
    </ul>


    <script>
        function aaa(params) {
            alert(12345)
        }
    </script>

    <br>
    <br>
    <br>
    <br>
</body>

</html>